package com.dingwen.treasure.mongodb.vo;

import lombok.*;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.util.List;

/**
 * mongo 分页信息
 *
 * @author dingwen
 * 2021.06.24 14:47
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@Accessors(chain = true)
@Builder
public class MongoPageVo<T extends Serializable> implements Serializable {

    private static final long serialVersionUID = 3378791352826434697L;


    /**
     * 第几页
     */
    private Integer pageNum;


    /**
     * 每页显示几条
     */
    private Integer pageSize;


    /**
     * 总页数
     */
    private Integer totalPageNum;


    /**
     * 总记录条数
     */
    private Long totalNum;


    /**
     * 数据
     */
    private List<T> data;

}
